import org.newdawn.slick.*;

public class Client
{
	private int id;
	private String name;
	private Color color;
	private boolean observing;
	private boolean disconnected;

	public Client(int id) {
		this(id, "");
	}

	public Client(int id, String name) {
		this(id, name, Color.white);
	}

	public Client(int id, String name, Color color) {
		this(id, name, color, false);
	}

	public Client(int id, String name, Color color, boolean observing) {
		this.id = id;
		this.name = name;
		this.color = color;
		this.observing = observing;
	}


	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Color getColor() {
		return color;
	}

	public void setObserving(boolean obs) {
		observing = obs;
	}

	public boolean isObserving() {
		return observing;
	}

	public boolean isBot() {
		return name.startsWith("@");
	}

	public boolean isDisconnected() {
		return disconnected;
	}

	public void setDisconnected(boolean value) {
		disconnected = value;
	}
}